package com.lovo.cloud.controller;

import com.lovo.cloud.service.PermissionService;
import com.lovo.model.dto.UserDTO;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author luo
 * @description
 * @date 2020/12/1 20:11
 */
@RestController
public class PermissionController {

    @Resource
    private PermissionService permissionService;

    @GetMapping ("/tokenInfo")
    public Object  check( UserDTO userDTO){
        return permissionService.getPermissions(userDTO.getUserName());
    }

}
